# if running bash
if [ -n "$BASH_VERSION" ]; then
    if [ -f "$HOME/.bashrc" ]; then
        . "$HOME/.bashrc"
    fi
fi

PATH="$HOME/bin:$PATH"
PATH="$HOME/.local/bin:$PATH"

export C_INCLUDE_PATH
export CPLUS_INCLUDE_PATH
export LIBRARY_PATH
export LD_LIBRARY_PATH

export GO111MODULE=on
export GOPROXY=https://goproxy.cn
export GOROOT=/opt/go
export GOPATH=$HOME/go
export NODE_PATH=/opt/nodejs

PATH=$GOROOT/bin:$PATH
PATH=$GOPATH/bin:$PATH
PATH=$NODE_PATH/bin:$PATH


conn-monitor() {
    export DISPLAY=host:0.0
    export LIBGL_ALWAYS_INDIRECT=1
    if [ -n `which xrdb` ] && [ -f $HOME/.Xresources ]; then xrdb -merge ~/.Xresources; fi
}

export PATH
